<template>
  <vxe-modal v-model="dialogVisible" title="新增" resize show-footer show-zoom :width="isMobile?'100%':'60%'" :fullscreen="isMobile">
    <el-form
      ref="form"
      :model="modelValue"
      :rules="rules"
      label-width="90px"
      label-position="right"
    >
      <el-form-item prop="label" label="部门名称">
        <el-input v-model.trim="modelValue.label" clearable />
      </el-form-item>
      <el-form-item prop="seq" label="排序">
        <el-input-number v-model="modelValue.seq" clearable />
      </el-form-item>
    </el-form>
    <template #footer>
      <vxe-button status="primary" content="提交" :disabled="loading" @click="clickSubmitBtn" />
    </template>
  </vxe-modal>
</template>

<script>
import Api from '@/api/upms/dep'
import { VxeModalMixin } from '@/mixins/vxe/VxeModalMixin'
export default {
  name: 'OrgDepCreateDTO',
  mixins: [VxeModalMixin],
  data() {
    return {
      api: Api.create,
      modelValue: {
        pid: '',
        label: '',
        seq: ''
      },
      rules: {
        pid: [
          { required: true }
        ],
        label: [
          { required: true }
        ],
        seq: [
          { required: true }
        ]
      }
    }
  },
  computed: {

  },
  mounted() {
  },
  methods: {

  }
}
</script>

<style>

</style>
